<div class="row">
	<div class="col-md-12">
		<!-- Custom Tabs -->
		<div class="nav-tabs-custom">
			<ul class="nav nav-tabs">
				<li>
					<a href="<?php echo base_url();?>employers/welcome" > Welcome</a>
				</li>
				<li>
					<a href="<?php echo base_url(); ?>employers/jobseekers-registration"> Search</a>
				</li>
				<li  class="active">
					<a href="<?php echo base_url(); ?>employers/browse-jobseekers-registered">Browse the registered jobseekers</a>
				</li>

				<li class="dropdown pull-right">
					<a class="dropdown-toggle" data-toggle="dropdown" href="#"><i class="glyphicon glyphicon-user"/></i> <?php echo $username; ?> <span class="caret"></span> </a>
					<ul class="dropdown-menu">
						<li role="presentation">
							<a role="menuitem" tabindex="-1" href="<?php echo base_url(); ?>employers/change-picture">Change Picture</a>
						</li>
						<li role="presentation">
							<a role="menuitem" tabindex="-1" href="<?php echo base_url(); ?>employers/change-password">Change Password</a>
						</li>
						<li role="presentation">
							<a role="menuitem" tabindex="-1" href="<?php echo base_url(); ?>employers/profile">Profile</a>
						</li>
						<li role="presentation" class="divider"></li>
						<li role="presentation">
							<a role="menuitem" tabindex="-1" href="<?php echo base_url(); ?>employers/logout">Logout</a>
						</li>
					</ul>
				</li>
				
			</ul>
			<div class="tab-content">
				<div class="tab-pane active" id="tab_1">

					<div class="row">
						<div class="col-xs-12">
							<div class="box">
								<div class="box-header">
									<h3 class="box-title"><span style="color:#3C8DBC !important;"><span class="glyphicon glyphicon-user"></span> &nbsp;Browse the jobseekers resumes</span></h3>
									<!--<a href="<?php echo base_url();?>control-jobseekers/insert-jobseeker"><button type="button" class="btn btn-primary pull-right" style="margin-right: 10px; margin-top: 5px;"><span class="glyphicon glyphicon-plus"></span> Add New</button></a>-->
								</div><!-- /.box-header -->
								<div class="box-body table-responsive">
									<!--<table id="example2" class="table table-bordered table-hover">
										<thead>
											<tr>
												<th>Seeker</th>
												<th>Job Categories</th>
												<th>Preferred Locations:</th>
												<th>Action</th>
											</tr>
										</thead>
										<tbody>


											<tr>
												<td>09/25/14</td>
												<td>Rejected</td>

												<td>Not qualified or experienced enough.</td>
												<td>
													<a class="btn  btn-info btn-sm" title="View Detail" data-toggle="modal" data-target="#view-seeker-preference-modal"><span class="glyphicon glyphicon-eye-open"></span> View Detail</a>
													<a class="btn  btn-primary btn-sm" title="Send Message" data-toggle="modal" data-target="#compose-message-modal"><span class="glyphicon glyphicon-edit"></span> Message</a>
													<a href="<?php echo base_url(); ?>employers/download-jobseeker-resume/<?php echo 1; ?>" class="btn btn-sm btn-warning"  title="View Resume" target="_blink"><span class="glyphicon glyphicon-file"></span> Resume</a></td>
											</tr>

										</tbody>
										<tfoot>
											<tr>
												<th>Seeker</th>
												<th>Job Categories</th>
												<th>Preferred Locations:</th>

												<th>Action</th>

											</tr>
										</tfoot>
									</table>-->
									<?php echo $jobseeker_resumes;?>
								</div><!-- /.box-body -->
							</div><!-- /.box -->

						</div>

					</div><!-- /.row -->
				</div><!-- /.tab-pane -->

			</div><!-- /.tab-content -->
		</div><!-- nav-tabs-custom -->
	</div><!-- /.col -->
</div>
<?php
	$this->load->view(F_TEMPLATE."modals/compose_message_to_jobseeker");
	$this->load->view(F_TEMPLATE."modals/view_seeker_preference");
?>
<script>
	$('.jobseeker_register_id').click(function() {
		  var answerid = $(this).attr('id');
		  $.post("<?php echo base_url(); ?>employers/jobseeker-seeking-rule-description",
                            {
                                jobseeker_id: answerid
                            },
                    function(data, status) {
							
							if(data=="" || data==null){
                    			$("#jobseeker_rule_desc").html("None");
                    		}else{
                    			$("#jobseeker_rule_desc").html(data);
                    		}
                    	
                    });
            $.post("<?php echo base_url(); ?>employers/jobseeker-seeking-rule-category",
                            {
                                jobseeker_id: answerid
                            },
                    function(data, status) {
                    		if(data=="" || data==null){
                    			$("#jobseeker_rule_category").html("None");
                    		}else{
                    			$("#jobseeker_rule_category").html(data);
                    		}
							
                    	
                    });
                $.post("<?php echo base_url(); ?>employers/jobseeker-seeking-rule-location",
                            {
                                jobseeker_id: answerid
                            },
                    function(data, status) {
							
                    		if(data=="" || data==null){
                    			$("#jobseeker_rule_location").html("None");
                    		}else{
                    			$("#jobseeker_rule_location").html(data);
                    		}
                    });
		  
		});
</script>
<script>
	$('.mail_jobseeker').click(function() {
		  var answerid = $(this).attr('id');
		
		  $('#to_jobseeker').val(answerid);
               });
</script>
